"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Societies",
      [
        {
          name: '篮球社',
          introduce: '这是篮球社，喜欢篮球的同学的聚集地，欢迎大家的加入',
          nowNumber: 55,
          planNumber: 100,
          minister: 2,
          status: 0,
          imgurl: 'https://www.baidu.com/link?url=0dwXrj9IbVRvp7eOfzQ5bm6A_QoSfNe8Xq4Arj-saIG&wd=&eqid=a41761be00049b270000000364381c49',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '舞蹈社',
          introduce: '舞蹈社团，跳舞可以提高大家的柔韧性',
          nowNumber: 70,
          planNumber: 100,
          minister: 1,
          status: 1,
          imgurl: 'https://www.baidu.com/link?url=0dwXrj9IbVRvp7eOfzQ5bm6A_QoSfNe8Xq4Arj-saIG&wd=&eqid=a41761be00049b270000000364381c49',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          name: '音乐爱好者协会',
          introduce: '爱唱歌，来音乐爱好者协会',
          nowNumber: 120,
          planNumber: 200,
          minister: 3,
          status: 2,
          imgurl: 'https://www.baidu.com/link?url=0dwXrj9IbVRvp7eOfzQ5bm6A_QoSfNe8Xq4Arj-saIG&wd=&eqid=a41761be00049b270000000364381c49',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Societies", null, {});
  },
};
